
#include "Computer.h"

Computer::Computer(Monitor* monitor)
    : monitor_(monitor)
{

}

std::string Computer::Desc()
{
  return "A computer that combines " + (monitor_ ? monitor_->Brand() : "no monitor");
}

Computer::~Computer()
{
  delete monitor_;
  monitor_ = nullptr;
}
